// ignore_for_file: file_names, use_super_parameters

import 'package:flutter/material.dart';

class NavigatorDemo extends StatefulWidget {
  const NavigatorDemo({Key? key}) : super(key: key);

  @override
  State<NavigatorDemo> createState() => _NavigatorDemoState();
}

class _NavigatorDemoState extends State<NavigatorDemo> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('订单详情'),
      ),
      body: Center(
        child: TextButton(
          child: const Text(
            '点击返回订单列表页',
            style: TextStyle(fontSize: 20.0),
          ),
          onPressed: () {
            // 路由返回上一级页面
            Navigator.pop(context);
          },
        ),
      ),
    );
  }
}
